package work;

/**
 * @TODO
 * @Author xu
 * 2025/2/24
 */
public class Day3_6 {
    public static void main(String[] args) {
        int wellDepth = 7;
        int climbed = 0;
        int days = 0;

        while (climbed < wellDepth) {
            days++;
            climbed += 3;

            if (climbed >= wellDepth) {
                break;
            }
            climbed -= 2;
        }
        System.out.println("青蛙需要 " + days + " 天才能爬出这口井。");
    }

}
